// 工人子类
public class Worker extends Employee {
    private int workDays;
    // 假设日工资为200元
    private static final double DAILY_WAGE = 200;

    public Worker(String name, String gender, String birthDate, int workDays) {
        super(name, gender, birthDate);
        this.workDays = workDays;
    }

    @Override
    public String getType() {
        return "工人";
    }

    @Override
    public void computeSalary() {
        double salary = workDays * DAILY_WAGE;
        System.out.println(getType() + " " + name + " 本月工资为 " + salary + " 元。");
    }
}
    